﻿using Autofac;
using System;

namespace AutofacApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var containerBuilder = new ContainerBuilder();
            containerBuilder.RegisterType<CacheManagerBase>().AsSelf().SingleInstance();
            var container = containerBuilder.Build();

            var cacheManager = container.Resolve<CacheManagerBase>();

            Console.WriteLine(cacheManager.Id);
            Console.ReadKey();
        }
    }
}
